/**
 * Created by json.lu on 2016/4/24.
 */

var bookStoreApp=angular.module('bookStoreApp',['ngRoute','bookStoreCtrls']);
bookStoreApp.config(function($routeProvider){
    $routeProvider.when('/hello',{
        templateUrl:'tpls/hello.html',
        controller:'HelloCtrl'
    } ).when('/list',{
        templateUrl:'tpls/list.html',
        controller:'ListCtrl'
    } ).otherwise({
        redirectTo:'/hello'
    })
})